<!-- $Id: main.jsp 392 2009-06-29 12:12:30Z huijzer $ -->
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<%@ taglib prefix="security" uri='http://www.springframework.org/security/tags' %>

<decorator:usePage id="myPage" />
<%
	request.setAttribute("object", myPage.getProperty("meta.object")); 
%>

<html>

<head>
	<title>Aoide :: <decorator:title /></title>
	<meta http-equiv="Content-type" content="text/html" />
	<meta http-equiv="Content-style-type" content="text/css" />
	<style type="text/css">
		@import "<c:url value="/style/css/tigris.css"/>";
		@import "<c:url value="/style/css/inst.css"/>";
	</style>
	<decorator:head />
</head>

<body marginwidth="0" marginheight="0" class="composite">

<div id="banner">
	<table border="0" cellspacing="0" cellpadding="8" width="100%">
		<tr>
			<td>
				<h1>Aoide</h1>
			</td>
			<td>
				<div id="login" align="right" class="right">
					<security:authorize ifAllGranted="ROLE_ADMIN">
						User: <b><security:authentication property="principal.username"/></b>
						<br/>
						<a href="<c:url value="/j_spring_security_logout"/>">Logout</a>
					</security:authorize>
				</div>
			</td>
		</tr>
	</table>
</div>

<div class="tabs" id="toptabs">
	<table cellpadding="4" cellspacing="0" border="0">
		<c:if test="${object == 'artist'}">
			<tr>
			<th><a href="<c:url value="/artistList.action"/>">Artist</a></th>
			<td><a href="<c:url value="/recordingList.action"/>">Recording</a></td>
			<td><a href="<c:url value="/statisticsDisplay.action"/>">Statistics</a></td>
			</tr>
		</c:if>
		<c:if test="${object == 'recording'}">
			<tr>
			<td><a href="<c:url value="/artistList.action?"/>">Artist</a></td>
			<th><a href="<c:url value="/recordingList.action"/>">Recording</a></th>
			<td><a href="<c:url value="/statisticsDisplay.action"/>">Statistics</a></td>
			</tr>
		</c:if>
		<c:if test="${object == 'statistics'}">
			<tr>
			<td><a href="<c:url value="/artistList.action?"/>">Artist</a></td>
			<td><a href="<c:url value="/recordingList.action"/>">Recording</a></td>
			<th><a href="<c:url value="/statisticsDisplay.action"/>">Statistics</a></th>
			</tr>
		</c:if>
	</table>
</div>

<div id="breadcrumbs" align="right">
	&nbsp;
</div>

<table border="0" cellspacing="0" cellpadding="4" width="100%" id="main">
<tr valign="top">
<td id="leftcol" width="20%">

<div id="navcolumn">
	<c:if test="${object == 'artist'}">
		<div id="projecttools" class="toolgroup">
			<div class="label">
				<strong>Methods</strong>
			</div>
			<div class="body">
				<div><a href="<c:url value="/artistList.action"/>">List</a></div>
				<div><a href="<c:url value="/artistAdd.action"/>">Add</a></div>
			</div>
		</div>
	</c:if>
	<c:if test="${object == 'recording'}">
		<div id="projecttools" class="toolgroup">
			<div class="label">
				<strong>Methods</strong>
			</div>
			<div class="body">
				<div><a href="<c:url value="/recordingList.action"/>">List</a></div>
				<div><a href="<c:url value="/recordingAdd.action"/>">Add</a></div>
			</div>
		</div>
	</c:if>
	<c:if test="${object == 'statistics'}">
		<div id="projecttools" class="toolgroup">
			<div class="label">
				<strong>Methods</strong>
			</div>
			<div class="body">
				<div><a href="<c:url value="/statisticsDisplay.action"/>">Display</a></div>
			</div>
		</div>
	</c:if>
</div>

<div class="strut">&nbsp;</div>

</td>
<td>

<div id="bodycol">
	<decorator:body />
</div>

</td>
</tr>
</table>
</body>
</html>

